package com.sc.study.sleeproom.domain;

import com.sc.common.core.domain.entity.SysUser;
import com.sc.study.sleeproom.controller.ScSleepRoomPersonTypeController;
import com.sc.study.student.domain.ScStudent;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.sc.common.annotation.Excel;
import com.sc.common.core.domain.BaseEntity;

/**
 * 寝室人员对象 sc_sleep_room_person
 * 
 * @author sc
 * @date 2022-03-14
 */
public class ScSleepRoomPerson extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 寝室人员类型 */
    @Excel(name = "寝室人员类型")
    private Long sleeproompersontypeid;

    /** 人员编号 */
    @Excel(name = "人员编号")
    private Long personid;

    /** 寝室编号 */
    @Excel(name = "寝室编号")
    private Long sleeproomid;

    /** 入住时间 */
    @Excel(name = "入住时间")
    private String intime;

    /** 离开时间 */
    @Excel(name = "离开时间")
    private String outtime;

    //旧值 寝室编号
    private Long oldSleepRoomId;


    //寝室人员类型
    private ScSleepRoomPersonType scSleepRoomPersonType;

    private Person person;

    //寝室
    private ScSleepRoom scSleepRoom;

    //查询条件 模糊查询入住人员
    private String likePersonName;
    //查询条件 模糊查询寝室名称
    private String likeSleepRoomName;

    //今日是否填写缺勤
    private Boolean ifCheckRoom;

    public Boolean getIfCheckRoom() {
        return ifCheckRoom;
    }

    public void setIfCheckRoom(Boolean ifCheckRoom) {
        this.ifCheckRoom = ifCheckRoom;
    }

    public Person getPerson() {
        return person;
    }

    public void setPerson(Person person) {
        this.person = person;
    }

    public Long getOldSleepRoomId() {
        return oldSleepRoomId;
    }

    public void setOldSleepRoomId(Long oldSleepRoomId) {
        this.oldSleepRoomId = oldSleepRoomId;
    }

    public ScSleepRoomPersonType getScSleepRoomPersonType() {
        return scSleepRoomPersonType;
    }

    public void setScSleepRoomPersonType(ScSleepRoomPersonType scSleepRoomPersonType) {
        this.scSleepRoomPersonType = scSleepRoomPersonType;
    }



    public ScSleepRoom getScSleepRoom() {
        return scSleepRoom;
    }

    public void setScSleepRoom(ScSleepRoom scSleepRoom) {
        this.scSleepRoom = scSleepRoom;
    }

    public String getLikePersonName() {
        return likePersonName;
    }

    public void setLikePersonName(String likePersonName) {
        this.likePersonName = likePersonName;
    }

    public String getLikeSleepRoomName() {
        return likeSleepRoomName;
    }

    public void setLikeSleepRoomName(String likeSleepRoomName) {
        this.likeSleepRoomName = likeSleepRoomName;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSleeproompersontypeid(Long sleeproompersontypeid) 
    {
        this.sleeproompersontypeid = sleeproompersontypeid;
    }

    public Long getSleeproompersontypeid() 
    {
        return sleeproompersontypeid;
    }
    public void setPersonid(Long personid) 
    {
        this.personid = personid;
    }

    public Long getPersonid() 
    {
        return personid;
    }
    public void setSleeproomid(Long sleeproomid) 
    {
        this.sleeproomid = sleeproomid;
    }

    public Long getSleeproomid() 
    {
        return sleeproomid;
    }
    public void setIntime(String intime) 
    {
        this.intime = intime;
    }

    public String getIntime() 
    {
        return intime;
    }
    public void setOuttime(String outtime) 
    {
        this.outtime = outtime;
    }

    public String getOuttime() 
    {
        return outtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sleeproompersontypeid", getSleeproompersontypeid())
            .append("personid", getPersonid())
            .append("sleeproomid", getSleeproomid())
            .append("intime", getIntime())
            .append("outtime", getOuttime())
            .toString();
    }
}
